@extends('layouts.app')
@section('title','我的收藏')

@section('content')
    <div class="row">
        <div class="col-lg-10 col-lg-offset-1">
            <div class="pan panel-default">
                <div class="panel-body">
                    <div class="row products-list">
                        @foreach($products as $product)
                            <div class="col-xs-3 product-item">
                                <div class="product-content">
                                    <div class="top">
                                        <div class="img"><a
                                                    href="{{ route('products.show',['product'=>$product->id]) }}"><img
                                                        src="{{ $product->image_url }}"
                                                        alt="{{ $product->title }}"/></a></div>
                                        <div class="price"><b>￥</b>{{ number_format($product->price,2) }}</div>
                                        <div class="title">{{ $product->title }}</div>
                                    </div>
                                    <div class="bottom">
                                        <div class="sold_count">销量<span>{{ $product->sold_count }}笔</span></div>
                                        <div class="review_count">评价<span>{{ $product->review_count }}</span></div>
                                    </div>
                                </div>
                            </div>
                        @endforeach
                    </div>
                    <div class="pull-right">
                        {{ $products->render() }}
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection